地図:新潟県

説明

指定した座標に新潟県を描きます。map()のパラメーターにはX座標、Y座標、描画する色を指定します。

[以下のJavaScriptプログラムをダウンロード]

function map(x,y,c){var n=128;
uart(n,14,3,x+8,y,c,0,0,0,0,8,8,24,48);
uart(n,14,3,x+24,y,c,7,15,15,15,15,15,31,30);
uart(n,14,3,x+32,y,c,0,0,0,128,224,192,128,0);
y=y+8;
uart(n,14,3,x+8,y,c,112,124,252,56,120,96,128,0);
uart(n,14,3,x+16,y,c,0,0,0,3,7,15,63,63);
uart(n,14,3,x+24,y,c,62,62,254,254,254,254,255,254);
y=y+8;
uart(n,14,3,x+8,y,c,0,0,0,0,1,1,3,7);
uart(n,14,3,x+16,y,c,127,127,127,255,255,255,255,255);
uart(n,14,3,x+24,y,c,254,252,248,252,252,224,0,128);
y=y+8;
uart(n,14,3,x,y,c,0,0,0,3,7,31,255,255);
uart(n,14,3,x+8,y,c,15,31,127,255,255,255,227,227);
uart(n,14,3,x+16,y,c,255,255,255,255,255,255,253,240);
uart(n,14,3,x+24,y,c,0,0,0,128,128,128,128,128);
y=y+8;
uart(n,14,3,x,y,c,239,103,64,0,0,0,0,0);
uart(n,14,3,x+8,y,c,195,64,0,0,0,0,0,0);
uart(n,14,3,x+16,y,c,240,224,192,192,0,0,0,0);
y=y+8;
}
uart("PC CLEAR 0b\n");
map(0,0,1);

目次に戻る